package org.systm.menu.service;

import org.global.basic.BaseServiceOpImpl;
import org.global.basic.CurdFindRepository;
import org.springframework.stereotype.Service;
import org.systm.menu.dao.PageMetaStore;
import org.systm.menu.entity.PageMeta;
import org.systm.menu.params.PageMetaServiceParams;

import javax.annotation.Resource;
import javax.persistence.EntityManager;

@Service
public class PageMetaService extends BaseServiceOpImpl<PageMeta, String, PageMetaServiceParams<String>> {
    @Resource
    PageMetaStore pageMetaStore;

    @Resource
    EntityManager entityManager;

    @Override
    public CurdFindRepository<PageMeta, String> repository() {
        return pageMetaStore;
    }

    @Override
    public EntityManager entityManger() {
        return this.entityManager;
    }
}
